var express = require('express');
var router = express.Router();
var photos = []
photos.push({
  name: 'node',
  path: 'http://pic13.nipic.com/20110409/7119492_114440620000_2.jpg'
})
photos.push({
  name: 'async',
  path: 'http://pic26.nipic.com/20121221/9252150_142515375000_2.jpg'
})


/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', {
    title: 'photos',
    photos: photos
  });
});

module.exports = router;
